/**
 * 素材
 * Created by icyhy on 2017/5/22.
 */
var mongoose = require("mongoose");
var docSchema = new mongoose.Schema({
  clanId:String,//部落Id
  userId: String,//素材提供者
  content:String, //素材内容，html格式
  status:String, //素材的状态，trashed或published表示草稿或发布状态
  checkRecord:String, //针对当前素材的评审记录
  created: {
    type: Date,
    default: Date.now
  },
  used: {//是否启用
    type: Boolean,
    default: true
  }
});

var docModel = db.model("doc", docSchema);
module.exports = docModel;
